package com.li.mapper;

import com.li.pojo.po.Clue;
import com.li.pojo.po.Contract;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface ClueMapper {



    void addClue(Clue clue);
    @Select("select * from sys_clue where id=#{id}")
    Clue find(Integer id);

    void modifyClu(Clue clue);

    List<Clue> page(Integer pageNum, Integer pageSize, Integer id, String phone, String owner, String beginCreateTime, String endCreateTime, String status, String channel);

    @Update("update sys_clue set status=#{status} where id = #{id}")
    void update(Integer id, String status);

    @Select("select * from sys_clue where id=#{id}")
    Clue getByClueId(Integer id);

    List<Clue> poolPage(Integer pageNum, Integer pageSize, Integer id, String phone, String owner, String beginCreateTime, String endCreateTime, String status, String channel);

    void reasonGain(Integer id, String status);

    void updateassignment(Clue clue);

    @Select("select * from sys_clue_record")
    List<Contract> findAll();
}

